<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<jsp:include page="checkAdminAuth.jsp" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Stores</title>
</head>
<body>
	<jsp:include page="menu/menu.jsp" />
	<%@ taglib prefix="s" uri="/struts-tags"%>
	<div id="content">
		<form name="adminViewStores" id="adminViewStoresForm"
			action="adminViewStores" method="post" accept-charset="utf-8">
			<table>
				<thead>
				</thead>
				<tbody>
					<tr>
						<s:select label="Server" headerKey="-1"
							headerValue="Select server" list="servers" name="serverName" />
					</tr>
					<tr>
						<td></td>
						<td><input type="submit" value="See stores"></td>
					</tr>
				</tbody>
			</table>
		</form>

		<br> <br>
		<table cellspacing='0'>
			<thead>
				<tr>
					<th>Name</th>
					<th>Description</th>
					<th></th>
				</tr>
			</thead>
			<tbody>
				<s:iterator value="stores" status="storesStatus">
					<tr>
						<td><s:property value="name" /></td>
						<td><s:property value="description" /></td>
						<td><a
							href='adminViewStore?id=<s:property value="id" />&server=<s:property value="server" />&name=<s:property value="name" />'>View</a></td>
					</tr>
				</s:iterator>
			</tbody>
		</table>
	</div>
</body>
</html>